package wewreere;
import java.util.Scanner;
public class Test extends Zoon{
    private String pz;

    public String getPz() {
        return pz;
    }

    public void setPz(String pz) {
        this.pz = pz;
    }
    public Test (){super("楠楠",100,0);}
    public static void main(String[] args){
        Test zoon=new Test("拉布老多犬");
        zoon.print();
    }
    public Test(String pz){
        super("楠楠",100,0);
        this.pz=pz;
    }
    @Override
    public void print() {
        super.print();
        System.out.println("我的品种是"+pz);
    }
    public Test (String name,  int health, int love) {
        super(name, health, love);
    }
}

